package com.nursebetty.server.model;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import com.nursebetty.server.common.UserProfile;

@XmlRootElement(name="data")
@XmlAccessorType(XmlAccessType.FIELD)
public class Clinicaldata implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@XmlTransient
	private UserProfile userProfile;

	@XmlTransient
	private Date currentTrackingDate;

	private String formattedDate;
	/**
	 * @return the userProfile
	 */
	public UserProfile getUserProfile() {
		return userProfile;
	}

	/**
	 * @param userProfile
	 *            the userProfile to set
	 */
	public void setUserProfile(UserProfile userProfile) {
		this.userProfile = userProfile;
	}

	/**
	 * @return the currentTrackingDate
	 */
	public Date getCurrentTrackingDate() {
		return currentTrackingDate;
	}

	/**
	 * @param currentTrackingDate
	 *            the currentTrackingDate to set
	 */
	public void setCurrentTrackingDate(Date currentTrackingDate) {
		this.formattedDate = new SimpleDateFormat("MM/dd/yyyy hh:mm").format(currentTrackingDate);
		this.currentTrackingDate = currentTrackingDate;
		
	}

	public String getFormattedDate() {
		return formattedDate;
	}

	public void setFormattedDate(String formattedDate) {
		this.formattedDate = formattedDate;
	}

}
